function t = checkbdy(photon_xyz)
if(abs(photon_xyz(1,1))<=10 & abs(photon_xyz(1,2))<=10 & (photon_xyz(1,3))<=10)
    t=1;
else
    display('photon energy absorbed at boundary');
    t=0;
end